var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
    // res.cookie('name', 'xxxxxxxxxxxxxxxxxxx22222', { domain: '.a.com', path: '/', secure: true });
    res.cookie('rememberme', '1BJLSJFGIOSJLKGJO#$KLSDFG', { domain: 'a.com', expires: new Date(Date.now() + 900000), httpOnly: true });
    
    res.render('index', { title: 'Express' });
});

module.exports = router;
